package com.example.project.Service.Impl;

import com.example.project.Dao.UserDao;
import com.example.project.Entity.User;
import com.example.project.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User selectUserByUsername(String username){return userDao.selectUserByUsername(username);}
    @Override
    public void registerNewUser(User user){userDao.registerNewUser(user);}
    @Override
    public User selectUserByMail(String mail){return userDao.selectUserByMail(mail);}
    @Override
    public User selectUserByPhone(String phone){return userDao.selectUserByPhone(phone);}
    @Override
    public void deleteUserByUsername(String username){userDao.deleteUserByUsername(username);}
}
